package org.example.thread.testStatus;

import java.util.concurrent.TimeUnit;

/**
 * @author liyishan
 * @date 2023/8/2 14:40
 * @apiNote  验证线程的TIMED_WARTING状态
 */

public class WaitingTime implements Runnable{

    @Override
    public void run() {
        while (true){
            waitSecond(200);
        }
    }

    public static final void waitSecond(long seconds){
        try{
            TimeUnit.SECONDS.sleep(seconds);
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
